#if !NET20

using System;

namespace Apewer.WebSocket
{

    internal class WebSocketException : Exception
    {

        internal WebSocketException(ushort statusCode) : base()
        {
            StatusCode = statusCode;
        }

        internal WebSocketException(ushort statusCode, string message) : base(message)
        {
            StatusCode = statusCode;
        }

        internal WebSocketException(ushort statusCode, string message, Exception innerException) : base(message, innerException)
        {
            StatusCode = statusCode;
        }
        
        public ushort StatusCode { get; private set;}

    }

}

#endif
